

import c3d from '../cc';
/*
 * @features: 节点注册器
 * @description: 说明
 * @Date: 2021-06-12 16:52:54
 * @Author: judu233(769471424@qq.com)
 * @LastEditTime: 2021-10-06 00:02:52
 * @LastEditors: judu233
 */
const { ccclass, property } = c3d._decorator;

@ccclass(`NodeGruop`)
class NodeGruop {
    @property({ displayName: `引导框节点`, type: c3d.Node })
    registerNode: c3d.Node = null;

    @property({ displayName: `引导注册的名字` })
    registerName = '';

    @property({ displayName: `引导框提示文本节点的位置`, type: c3d.Node })
    registerTextNode: c3d.Node = null;
}

/**  
    * @Title : NewClass
    * @Description : 函数说明
 **/
@ccclass
export default class NodeRegistered extends c3d.Component {

    @property([NodeGruop])
    registerGuop: NodeGruop[] = [];

    start() {
        // if (GM.main.guideMgr?._isLoad)
        //     this.registerGuop.forEach(data => {
        //         GM.main.guideMgr.NodeRegistered(data);
        //     })
    }
}
